package com.example.dubboprider.config;

import com.alibaba.dubbo.config.ConsumerConfig;
import com.alibaba.dubbo.config.ReferenceConfig;
import com.example.dubboprider.service.ProductService;
import org.springframework.context.annotation.Bean;

//@Configuration
public class DubboConfig {
    @Bean
    public  ReferenceConfig<ProductService> getReferenceConfig(){
        ConsumerConfig consumerConfig = new ConsumerConfig();
        consumerConfig.setVersion("1.0.0");
        ReferenceConfig<ProductService> referenceConfig = new ReferenceConfig();
        return referenceConfig;
    }
}
